﻿using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.Security;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace DLL
{
    public class DALClass
    {
        string path = System.Web.HttpContext.Current.Server.MapPath("~\\App_Data\\AuthorsDB.xml");
        public DALClass()
        {

        }
        public DataSet GetAllPersons()
        {
            DataSet persons = new DataSet();
            persons.ReadXml(this.path);
            return persons;
        }
        public void SavePersonsToDB(DataSet ds)
        {
            ds.WriteXml(this.path);
        }
    }
}
